package com.phone.client.poji.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("coupon_history")
@ApiModel(value="优惠券记录的实体", description="优惠券记录表")
public class CouponHistory {

  @ApiModelProperty(value = "id")
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  @ApiModelProperty(value = "优惠券id")
  private Integer couponId;

  @ApiModelProperty(value = "等级名称")
  private Integer memberId;

  @ApiModelProperty(value = "优惠券码")
  private String couponCode;

  @ApiModelProperty(value = "获取类型")
  private Integer getType;

  @ApiModelProperty(value = "获取时间")
  private String createTime;

  @ApiModelProperty(value = "使用状态")
  private Integer useStatus;

  @ApiModelProperty(value = "使用时间")
  private String useTime;

  @ApiModelProperty(value = "订单id")
  private Integer orderId;

  @ApiModelProperty(value = "订单编号")
  private String orderSn;

  //表示该菜单下具有的子菜单
  @TableField(exist = false)  //表示数据库中不存在该字段
  @ApiModelProperty(value = "客户信息")
  private TbClient tbClient;

  @TableField(exist = false)  //表示数据库中不存在该字段
  @ApiModelProperty(value = "优惠券信息")
  private TbCoupon tbCoupon;


}
